package com.finalist.entity;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

@Entity
@Table(name = "xx_store")
@SequenceGenerator(name = "sequenceGenerator", sequenceName = "xx_store_sequence")
public class Store extends BaseEntity {

	/** 名称 */
	private String name;
	
	private String fullAddresss;
	public String getFullAddresss() {
		return fullAddresss;
	}

	public void setFullAddresss(String fullAddresss) {
		this.fullAddresss = fullAddresss;
	}

	/**
	 * 获取地区
	 * 
	 * @return 地区
	 */
	@NotNull
	@ManyToOne(fetch = FetchType.LAZY)
	public Area getArea() {
		return area;
	}


	public void setArea(Area area) {
		this.area = area;
	}

	/** 地址*/
	private String address;
	
	/** 地区 */
	private Area area;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
}
